<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" href="../media/images/favicon.ico" type="image/x-icon">
    <title>videoUI</title>
</head>
<body>
<div class="container">
    <div class="video-ui" style="width: 720px;height: 480px;margin: 10px auto">
    </div>
</div>
</body>
<script>
    var vui = new VideoUI({
        el: ".video-ui",
        poster: "../media/images/poster_img.png",
        // language: "en",
        bulletAble: true,
        quality: true,
        qualityData: [{
            name: "4K",
            src: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4",
            type: "video/mp4",
            selected: false
        }, {
            name: "1080P 高清",
            src: "http://vjs.zencdn.net/v/oceans.mp4",
            type: "video/mp4",
            selected: false
        }, {
            name: "720P 高清",
            src: "https://media.w3.org/2010/05/sintel/trailer.mp4",
            type: "video/mp4",
            selected: false
        }],
        currentTime: 30,//设置起始播放时间 默认0 单位s
        muted: true,//设置静音 默认false
        volume: 62,// 音量大小 0~100 默认100
        playRate: true, //播放速率默认 1.0
        playRateData: [{
            name: "2.0X",
            value: "2.0",
            selected: false
        }, {
            name: "1.5X",
            value: "1.5",
            selected: false
        }, {
            name: "1.25X",
            value: "1.25",
            selected: false
        }, {
            name: "1.0X",
            value: "1.0",
            selected: true
        }, {
            name: "0.75X",
            value: "0.75",
            selected: false
        }, {
            name: "0.5X",
            value: "0.5",
            selected: false
        }],
        browserFullscreen: true,
        windowFullscreen: true,
        pictureInPicture: true,
    });
</script>
</html>
